package com.dd.dao;

import com.dd.entity.Book;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookDao {
    public List<Book> selectAll();

    public void addBook(Book book);

    public void updateBook(@Param("id") int id, @Param("bookName") String bookName,
                           @Param("author") String author, @Param("price") double price,
                            @Param("bookType") String bookType, @Param("stock") int stock);

    public void deleteBook(int id);
}
